import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import { createPinia } from 'pinia'
import router from '@/router'
import ElementPlus from 'element-plus'
import ViewUIPlus from 'view-ui-plus'
import 'element-plus/dist/index.css'
import 'view-ui-plus/dist/styles/viewuiplus.css'
//导入持久化插件
import {createPersistedState} from'pinia-persistedstate-plugin'

const app=createApp(App)

const pinia = createPinia()
const persist = createPersistedState()
//pinia使用持久化插件
pinia.use(persist)

app.use(pinia)
    .use(router)
    .use(ElementPlus)
    .use(ViewUIPlus)


app.mount('#app')